import request from '@/utils/request'
import { IResp } from './interfaces'
import { DBKeys } from './commonCrud'

export type DBKeysUnauth = Omit<DBKeys, 'users' | 'bigModelConfigs' | 'siteConfigs'>


// 获取热门分页列表
export const getHotList = (
    db: DBKeys,
    searchParams: any,
    dbInclude: any[] = []
) => {
    return request.post<any, IResp>(`/hot/getList/${db}`, {
        page: 1,
        pageSize: 5,
        ...searchParams,
        dbInclude,
    })
}

